<%-- 
    Document   : UserViewProfile.jsp
    Created on : May 20, 2010, 10:47:17 PM
    Author     : vasi
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="entities.UserEntity" %>
<%@page import="entities.ContentEntity" %>
<%@page import="java.util.*" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>User Profile</title>
        <link href="<% out.print(request.getContextPath()); %>/styles/default.css" rel="stylesheet" type="text/css" />
        <script src="<% out.print(request.getContextPath()); %>/js/jquery.js" type="text/javascript"></script>
        <script src="<% out.print(request.getContextPath()); %>/js/UserView.js" type="text/javascript"></script>
    </head>
    <body>
        <jsp:include page="fragments/Header.jsp" />
        <div id="page">
            <h1>My Profile Page.</h1>
            <div id="page_content">
                <jsp:include page="fragments/Tabs.jsp" />
                <% UserEntity user = (UserEntity)request.getAttribute("user");%>
                <br>
                <div><b>Name</b>: <% out.print(user.getFirstname()+" "+user.getLastname()); %></div>
                <div><b>e-mail</b>: <% out.print(user.getMail()); %></div>
                
                <br>
                <div id="rated_content_form_wrapper">
                    <a id="rated_content_title" href="<% out.print(request.getContextPath()); %>/#">Rated Contents</a>
                    <div id="user_rated_content" style="display: none;">
                        <jsp:include page="fragments/RatedContentsList.jsp" />
                    </div>
                </div>
                
                <br>
                <div id="commented_content_form_wrapper">
                    <a id="commented_content_add_title" href="<% out.print(request.getContextPath()); %>/#">Commented Contents</a>
                    <div id="commented_content_form" style="display: none;">
                        <jsp:include page="fragments/CommentedContentList.jsp" />
                    </div>
                </div>
                    
            </div>
        </div>
    </body>
</html>
